import React from 'react';
import RenderRouterView from '../../router/router.view';
import {Props} from '../../router/router.d';
import {NavLink} from 'react-router-dom';
import style from './main.module.scss';

const Main:React.FC<Props> = function({routes}){
    return <div className={style.wrap}>
        <div className={style.con}>
            {RenderRouterView(routes)}
        </div>
        
        <footer className={style.foot}>
            <NavLink to="/main/home">主页</NavLink>
            <NavLink to="/main/my">我的</NavLink>
        </footer>
    </div>
}

export default Main